<script setup>
import { ref, reactive } from "vue";
import { useRouter } from "vue-router";
const router = useRouter();

var params = new URLSearchParams(window.location.search);
// 获取指定参数的值
var planId = params.get('planId');
// 示例用法
console.log(planId);

router.push({
  name: "Home",
  query: {
    planId: planId
  }
});

</script>

<template>
  <RouterView></RouterView>
</template>

<style scoped lang="less"></style>
